package com.dcm.common.constant;

/**
 * 自定义常量
 *
 * @author PengRongSheng
 * @date 2021/3/23
 **/

public class Constants {
    /**
     * 错误信息
     */
    public static class ResponseMsg {
        public final static String PAGE_PARAMS_NOT_NULL = "分页参数不能为空";
        public final static String FAILED = "操作失败";
        public final static String SUCCESS = "操作成功";
        public final static String VALIDATE_FAILED = "参数检验失败";
        public final static String UNAUTHORIZED = "暂未登录或token已经过期";
        public final static String FORBIDDEN = "没有相关权限";
        public final static String SERVICE_ERROR = "服务器异常";
    }

    public static class OrderErrorMsg {
        public final static String RECEIVER_CANNOT_NULL = "收货人不能为空";
        public final static String PHONE_CANNOT_NULL = "收货人电话不能为空";
        public final static String DETAIL_ADDRESS_CANNOT_NULL = "详细地址不能为空";

        public final static String ORDER_UID_CANNOT_NULL = "砍价记录的用户ID不能为空";
        public final static String ORDER_BID_CANNOT_NULL = "砍价记录的商品ID不能为空";

    }

    public static class UserErrorMsg {
        public final static String USERNAME_CANNOT_NULL = "用户名不能为空";
        public final static String PHONE_CANNOT_NULL = "电话不能为空";
        public final static String DETAIL_ADDRESS_CANNOT_NULL = "密码不能为空";
    }

    /**
     * 砍价
     */
    public static class Bargain {
        public final static String TODAY = "今天";
        public final static String YESTERDAY = "昨天";
        public final static String SEVENDAYS = "最近7天";
        public final static String THIRTYDAYS = "最近30天";
        public final static String THISMONTH = "本月";
        public final static String THISYEAR = "本年";
    }

    /**
     * item自定义错误信息
     */
    public static class ItemErrorMsg {
        public final static String ITEM_ID_CANNOT_NULL = "商品ID不能为空";
        public final static String ITEM_IMAGE_CANNOT_NULL = "商品图标不能为空";
        public final static String ITEM_CREATE_TIME_CANNOT_NULL = "商品创建时间不能为空";
        public final static String ITEM_NAME_CANNOT_NULL = "商品名称不能为空";
        public final static String ITEM_STATUS_CANNOT_NULL = "商品状态不能为空";
        public final static String ITEM_INTRODUCTION_CANNOT_NULL = "商品简介不能为空";
        public final static String ITEM_PRICE_CANNOT_NULL = "商品售价不能为空";
        public final static String ITEM_BANK_CANNOT_NULL = "商品库存不能为空";
    }

    /**
     * 直播功能自定义错误信息
     */
    public static class LiveItemErrorMsg {
        public final static String LIVE_ID_CANNOT_NULL = "直播商品ID不能为空";
        public final static String LIVE_IMAGE_CANNOT_NULL = "直播商品图片不能为空";
        public final static String LIVE_NAME_CANNOT_NULL = "直播商品名称不能为空";
        public final static String LIVE_PRICE_CANNOT_NULL = "商品价格不能为空";
        public final static String ITEM_ID_CANNOT_NULL = "关联商品id不能为空";
    }

    /**
     * 牛浩的秒杀
     */
    public static class SecKillErrorMsg {
        public final static String KILL_NAME_CANNOT_NULL = "秒杀名称不能为空";
        public final static String KILL_MID_CANNOT_NULL = "Id不能为空";
        public final static String KILL_STATE_CANNOT_NULL = "状态不能为空";
        public final static String KILL_CONFIGURE_CANNOT_NULL = "配置名称不能为空";
        public final static String KILL_IMG_CANNOT_NULL = "商品图片不能为空";
        public final static String KILL_TITLE_CANNOT_NULL = "活动标题不能为空";
        public final static String KILL_INTRODUCTION_CANNOT_NULL = "活动简介不能为空";
    }

    /**
     * 牛浩 拼团订单
     */
    public static class GroupBoErrorMsg {
        public final static String CONDITIONS_NOT_SATISFIED = "拼团条件不满足";
        public final static String MESSAGE = "该拼团对象已经有了";
        public final static String ID_CANNOT_NULL = "Id不能为空";
        public final static String RECEIVER_NAME_CANNOT_NULL = "拼团人姓名不能为空";
        public final static String MEMBER_USERNAME_CANNOT_NULL = "发起拼团人不能为空";
        public final static String ORDER_SN_CANNOT_NULL = "拼团标识符不能为空";
        public final static String NOTE_CANNOT_NULL = "拼团商品不能为空";
        public final static String END_CANNOT_NULL = "最后一个拼团完成";
        public final static String OK_CANNOT_NULL = "拼团结束了";
        public final static String START_CANNOT_NULL = "拼团成功了";
    }

    /**
     * 牛浩 拼团列表
     */
    public static class GroupOrderErrorMsg {
        public final static String ID_CANNOT_NULL = "Id不能为空";
        public final static String IMG_CANNOT_NULL = "头像不能为空";
        public final static String LEADER_CANNOT_NULL = "开团团长不能为空";
        public final static String START_DATE_CANNOT_NULL = "开团时间不能为空";
        public final static String NAME_CANNOT_NULL = "拼团商品不能为空";
        public final static String PEOPLE_CANNOT_NULL = "几人团不能为空";
        public final static String JOIN_CANNOT_NULL = "几人参加不能为空";
        public final static String END_DATE_CANNOT_NULL = "结束时间不能为空";
        public final static String STATE_CANNOT_NULL = "拼团状态不能为空";
    }

    /**
     * 牛浩 拼团商品
     */
    public static class GroupBuyErrorMsg {
        public final static String GROUP_ID_CANNOT_NULL = "Id不能为空";
        public final static String GROUP_STATE_CANNOT_NULL = "状态不能为空";
        public final static String GROUP_NAME_CANNOT_NULL = "名称不能为空";
        public final static String GROUP_IMG_CANNOT_NULL = "拼团图片不能为空";
        public final static String PRICE_CANNOT_NULL = "原价不能为空";
        public final static String GROUP_PRICE_CANNOT_NULL = "拼团价不能为空";
        public final static String GROUP_PEOPLE_CANNOT_NULL = "拼团人数不能为空";
        public final static String PARTICIPATE_PEOPLE_CANNOT_NULL = "参与人数不能为空";
        public final static String GROUP_NUM_CANNOT_NULL = "成团数量不能为空";
        public final static String LIMITS_CANNOT_NULL = "限量不能为空";
        public final static String LIMITS_SURPLUS_CANNOT_NULL = "限量剩余不能为空";
        public final static String START_DATE_CANNOT_NULL = "开始时间不能为空";
        public final static String END_DATE_CANNOT_NULL = "结束时间不能为空";
        public final static String GROUP_NAME_SIZE_CANNOT_NULL = "拼团名称不能超过100";
        public final static String GROUP_NAME_REGULAR_CANNOT_NULL = "不是字母数字汉字";
    }

    /**
     * 商品分类 周俣含
     */
    public static class CategoryErrorMsg {
        public final static String CATEGORY_ID_CANNOT_NULL = "分类ID不能为空";
        public final static String CATEGORY_NAME_CANNOT_NULL = "分类姓名不能为空";
        public final static String CATEGORY_STATUS_CANNOT_NULL = "分类状态不能为空";
        public final static String CATEGORY_SORT_CANNOT_NULL = "分类升序不能为空";
        public final static String CATEGORY_IMAGES_CANNOT_NULL = "分类图片不能为空";
        public final static String CATEGORY_TYPE_CANNOT_NULL = "分类类型不能为空";
        public final static String CATEGORY_PID_CANNOT_NULL = "分类二级不能为空";
    }

    public static class SpecificaErroMsg {
        /**
         * 商品规格
         * 孟祥剑
         */
        public final static String SPECIFICATIONNAMETONULL = "规格名称不能为空";

        public final static String SPECIFICATIONTYPETONULL = "规格类型不能为空";

        public final static String SPECIFICATIONSHOPTONULL = "规格属性不能为空";

        public final static String SPECIFICATIONSHOPIDTONULL = "规格ID不能为空";

        public final static String SPECIFICATIONSHOPIDSTONULL = "ID不能为空";
    }

    /**
     * 砍价
     * 周俣含
     */
    public static class BargainErrorMsg {
        public final static String BARGAIN_ID_CANNOT_NULL = "砍价商品id不能为空";
        public final static String BARGAIN_IMAGES_CANNOT_NULL = "砍价商品砍价图片不能为空";
        public final static String BARGAIN_BARGAINNAME_CANNOT_NULL = "砍价商品名称不能为空";
        public final static String BARGAIN_BARGAINPRICE_CANNOT_NULL = "砍价商品价格不能为空";
        public final static String BARGAIN_LOWPRICE_CANNOT_NULL = "砍价商品最低价不能为空";
        public final static String BARGAIN_PERSON_CANNOT_NULL = "砍价商品参与人数不能为空";
        public final static String BARGAIN_BARGAINPERSON_CANNOT_NULL = "砍价商品帮忙砍价的人数不能为空";
        public final static String BARGAIN_SUCCESS_PERSON_CANNOT_NULL = "砍价商品砍价成功的人数不能为空";
        public final static String BARGAIN_ASTRICT_CANNOT_NULL = "砍价商品限量不能为空";
        public final static String BARGAIN_ASTRICTRESIDUE_CANNOT_NULL = "砍价商品限量剩余不能为空";
        public final static String BARGAIN_ENDTIME_CANNOT_NULL = "砍价商品结束时间不能为空";
        public final static String BARGAIN_STATUS_CANNOT_NULL = "砍价商品状态不能为空";
        public final static String BARGAIN_CURRENTPAGE_CANNOT_NULL = "砍价列表页数不能为空";
        public final static String BARGAIN_PAGESIZE_CANNOT_NULL = "砍价分页数量不能为空";

        public final static String NOTCUTFINISH = "砍价未结束";
        public final static String CUT_FINISH = "砍价结束";
        public final static String CANSHUGESHI = "传入参数格式错误";
        public final static String FAILED = "订单过时";
        public final static String REPEATED_BARGAIN = "该用户已经帮助过砍价";
        public final static String SUCCESS = "砍价成功!砍价金额：";
        public final static String LAST_SUCCESS = "最后一人砍价成功!砍价金额：";
        public final static String FAILURE = "砍价失败";
        public final static String SUCCESS_BARGAIN = "成功发起砍价";

    }

    public static class UserBillErroMsg {

        public final static String TIME = "开始时间不能大于结束时间！";

    }

    public static class LiveErroMsg{
        public final static String LIVE_STATUS_CANNOT_NULL="直播状态不能为0";
        public final static String LIVE_ID_CANNOT_NULL="直播ID不能为空";
    }

}
